public class SuitPile extends CardPile {
	SuitPile(int x1, int y1) {
		super(x1, y1);
	}
	public boolean canTake (Card aCard){
		if(isEmpty())
			return aCard.getRank() == 0;
		Card topCard = top();
		return (aCard.getSuit() == topCard.getSuit())&& (aCard.getRank() == 1 + topCard.getRank());
	}
}
